package com.yuyou.fn.educational.service;

import com.github.wens.framework.service.ISuperService;
import com.yuyou.fn.platform.entity.CustomerUser;

/**
 *
 * CustomerUser 表数据服务层接口
 *
 */
public interface ICustomerUserService extends ISuperService<CustomerUser,Long> {


    CustomerUser loginFormWx(String openId, String nickname , String sex, String province, String city, String avatar);

    void updatePersonMessage(CustomerUser customerUser);

    CustomerUser findCustomerUserByPhoneNo(String phoneNo);

    CustomerUser registerCustomerUserPhoneNo(String phoneNo ,String password , String avatarUrl, Integer sex, String location);


    CustomerUser loginByPhoneNo(String phoneNo);

    CustomerUser createCustomerUserIfNeed(String phoneNo,String ppId , String memberId);

    CustomerUser wxBindPhoneNo(String phoneNo, String openId, String nickname, String sex, String province, String city, String avatar);


    CustomerUser loginFormUC(String ticket);

    String syncCustomerUserToMemberCenter(String phoneNo);
}